<template>
	<view class="price">
		<view class="symbol" :style="{fontSize:fontSize-8+'rpx'}">￥</view>
		<view class="value" :style="{fontSize:fontSize+'rpx'}">{{ value }}</view>
	</view>
</template>

<script>
	export default {
		props:{
			value: {
				type:Number,
				default:0
			},
			fontSize: {
				type:Number,
				default:34
			}
		},
		data(){
			return {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.price {
		display: flex;
		align-items: baseline;
		justify-content: center;
		// color: #2d2d2d;
		
		.symbol {
			height: 36rpx;
			font-size: 26rpx;
			font-weight: bold;
			line-height: 36rpx;
		}
		
		.value {
			margin-left: 2rpx;
			height: 45rpx;
			font-size: 34rpx;
			font-weight: bold;
			line-height: 45rpx;
		}
	}
</style>